//
//  FileManger.h
//  MBObjectServer
//
//  Created by admin on 3/6/14.
//  Copyright (c) 2014 MBpayer. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface FileManger : NSObject
-(NSString *)dirDoc;
-(BOOL)createDir:(NSString *)dirname;
-(void)writeFile:(NSString *)filename withDir:(NSString *)dirname WithContent:(NSString *)contentdata;
-(void)writeFile:(NSString *)filename withDir:(NSString *)dirname WithContentdata:(NSData *)contentdata;
-(void)writeFile:(NSString *)filename withDir:(NSString *)dirname WithContentDictionary:(NSDictionary *)contentdictionary;
-(void)writeFile:(NSString *)filename withDir:(NSString *)dirname WithContentArray:(NSArray *)contentarray;
//补充文件内容
-(void)writeFile:(NSString *)filename withDir:(NSString *)dirname
    appendString:(NSString *)contentdata;
//读文件
-(NSString *)readFile:(NSString *)filename withDir:(NSString *)dirname;
-(NSData *)readFileData:(NSString *)filename withDir:(NSString *)dirname;
-(NSDictionary *)readFileDictionary:(NSString *)filename withDir:(NSString *)dirname;
-(NSArray *)readFileArray:(NSString *)filename withDir:(NSString *)dirname;
//删除文件
-(BOOL)deleteFile:(NSString *)filename withDir:(NSString *)dirname;
@end
